import { stringify } from 'querystring';
import { history } from 'umi';
import { sysLogin } from '@/services/sysLogin';
import { setAuthority } from '@/utils/authority';
import { getPageQuery } from '@/utils/utils';
export default {
    namespace: 'sysLogin',
    state: {
    },
    effects: {
        // *login({ payload }, { call, put }) {
           
        // },
        logout() {
            // const { redirect } = getPageQuery(); // Note: There may be security issues, please note
            localStorage.setItem("authInfo", null);
            setAuthority(null);
            history.push("/user/login");
        },
    },
};;
